<div class="divstudentdetail">
    <div class="divcontent">
        <div class="studentdetail">
            <div class="divstudent">
                <div class="divimg">
                    <img [src]="student!.img" class="rounded mx-auto" />
                </div>
                <!-- <div class="studentinfo"> -->
                <p>姓名:{{student!.name}}&nbsp;&nbsp;&nbsp;年龄:{{student!.age}}</p>
                <p>数学:{{student!.shuxue}}</p>
                <p>语文:{{student!.yuwen}}</p>
                <p>英语:{{student!.yinyu}}</p>
                <p>平均成绩:{{((student!.shuxue+student!.yinyu+student!.yuwen)/3).toFixed(2)}}&nbsp;&nbsp;&nbsp; 总成绩:{{student!.shuxue+student!.yinyu+student!.yuwen}}
                        &nbsp;&nbsp;&nbsp;</p>
                <!-- </div>
                <div> -->
                <button (click)="close()">关闭</button>
                <div class="goodclass" *ngIf="((student!.shuxue+student!.yinyu+student!.yuwen)/3)>60;else notice">
                    平均成绩合格</div>
                <ng-template #notice>
                    <div class="spannotice">平均成绩不合格！</div>
                </ng-template>
                <!-- <div *ngTemplateOutlet="notice"></div> -->
                <!-- </div> -->
            </div>
        </div>
    </div>
</div>